﻿// ***********************************************************************
// Assembly         : STX.Domain
// Author           : seven.x
// Created          : 12-26-2013
//
// Last Modified By : seven.x
// Last Modified On : 02-10-2014
// ***********************************************************************
// <copyright file="BizUser.cs" company="驰创数码">
//     Copyright (c) 驰创数码. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace STX.Domain
{
    /// <summary>
    /// Class BizUser.
    /// </summary>
    public class BizUser:BaseEntity
    {

        /// <summary>
        /// Gets or sets the username.
        /// </summary>
        /// <value>The username.</value>
        public string Username { get; set; }


        /// <summary>
        /// Gets or sets the password.
        /// </summary>
        /// <value>The password.</value>
        public string Password { get; set; }

        /// <summary>
        /// Gets or sets the email.
        /// </summary>
        /// <value>The email.</value>
        public string Email { get; set; }

        /// <summary>
        /// Gets or sets the photo.
        /// </summary>
        /// <value>The photo.</value>
        public string Photo { get; set; }
        /// <summary>
        /// Gets or sets the last login time.
        /// </summary>
        /// <value>The last login time.</value>
        public DateTime LastLoginTime { get; set; }

        /// <summary>
        /// Gets or sets the login count.
        /// </summary>
        /// <value>The login count.</value>
        public int LoginCount { get; set; }

        /// <summary>
        /// Gets or sets the last login ip.
        /// </summary>
        /// <value>The last login ip.</value>
        public string LastLoginIp { get; set; }

        /// <summary>
        /// Gets or sets the reg date time.
        /// </summary>
        /// <value>The reg date time.</value>
        public DateTime RegDateTime { get; set; }

        /// <summary>
        /// Gets or sets the status.
        /// </summary>
        /// <value>The status.</value>
        public BizUserStatus Status { get; set; }

        /// <summary>
        /// Gets or sets the token.
        /// </summary>
        /// <value>The token.</value>
        public string Token { get; set; }

        /// <summary>
        /// Enum BizUserStatus
        /// </summary>
        public enum BizUserStatus
        {
            /// <summary>
            /// The online
            /// </summary>
            Online = 0,
            /// <summary>
            /// The close
            /// </summary>
            Close = 1
        }
    }
}
